package com.wjw.controller;

import com.wjw.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {
    @GetMapping("/h01")
    public String h01(){
        return "hello mother f**k";
    }

    @Autowired
    private Person person;

    @GetMapping("/h02")
    public Person h02(){
        return person;
    }
}
